// mock/index.js
import Mock from 'mockjs';


export function setupMock() {
  Mock.mock('/api/users', 'get', () => {
    return Mock.mock({
      'data|2-10': [
        {
          id: '@ID',
          Name: '@NAME',
          StudentCount: '@integer(1,100)',
          AnswerCount: '@integer(1,100)',
          date: '@datetime'
        }
      ]
    })
  }); // 拦截 GET /api/users 请求，并返回模拟数据

}



